package com.tangyuan.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: headlines_comment
 * @Author: jeecg-boot
 * @Date: 2024-03-18
 * @Version: V1.0
 */
@Data
@TableName("headlines_comment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "headlines_comment对象", description = "headlines_comment")
public class HeadlinesComment implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 新增时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "新增时间")
    private Date createTime;
    /**
     * createBy
     */
    @ApiModelProperty(value = "createBy")
    private Long createBy;
    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容")
    private String content;
    /**
     * 不喜欢数量
     */
    @ApiModelProperty(value = "不喜欢")
    private Integer dislikeCount;
    /**
     * 喜欢数量
     */
    @ApiModelProperty(value = "喜欢")
    private Integer likeCount;
    /**
     * 图文id
     */
    @ApiModelProperty(value = "图文id")
    private Long headlinesId;
    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String userIcon;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;
    /**
     * 类型 0评论 1点赞
     */
    @ApiModelProperty(value = "类型 0评论 1点赞")
    private Integer type;

//    /**
//     * 是否点赞
//     */
//    @ApiModelProperty(value = "是否点赞")
//    private Integer isThumpUp;
    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    private String area;
    /**
     * recommend
     */
    @ApiModelProperty(value = "recommendId")
    private Integer recommendId;
    /**
     * 评论id
     */
    @ApiModelProperty(value = "评论id")
    private Long replyId;
    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private Long parentId;
    /**
     * 点赞数
     */
    @ApiModelProperty(value = "点赞数")
    private Integer thumpUpNum;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * updateBy
     */
    @ApiModelProperty(value = "updateBy")
    private String updateBy;
    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private Integer isDeleted;

    /**
     * 回复人用户名
     */
    @ApiModelProperty(value = "回复人用户名")
    @TableField(exist = false)
    private String parentName;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer status;
    @TableField(exist = false)
    private Integer isLike = 0;
    @TableField(exist = false)
    private Integer isDisLike = 0;
    @TableField(exist = false)
    private Integer isComment = 0;
    @TableField(exist = false)
    private Integer isThumpUp;
    @TableField(exist = false)
    private Integer repayCount;
    @TableField(exist = false)
    private List<HeadlinesComment> comments;






}
